package cn.ac.siom.query.service.impl;

import cn.ac.siom.query.dao.ITab_articleDAO;
import cn.ac.siom.query.service.IItem_infoService;
import cn.ac.siom.query.service.ITab_articleService;
import cn.ac.siom.query.vo.Tab_article;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
public class Tab_articleServiceImpl implements ITab_articleService {


    @Resource
    private ITab_articleDAO Tab_articleDAO;


    @Override
    public List<Tab_article> list() throws SQLException {
        return this.Tab_articleDAO.findAll();
    }

    @Override
    public List<Tab_article> list_NO(Integer i_id) throws SQLException {
        List<Tab_article> tab_article=this.Tab_articleDAO.findNo(i_id);
        return tab_article;
    }
}
